package appapi.entity.bridge;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 设备报警手动处理表(AlarmHandle)实体类
 *
 * @author hlm
 * @since 2023-09-15 13:53:02
 */
@Data
@ApiModel
@TableName("alarm_handle")
public class AlarmHandle implements Serializable {
    private static final long serialVersionUID = 732348973279905158L;
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "自编号设备报警手动处理Id")
    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;
    /**
     * 设备sn
     */
    @ApiModelProperty(value = "设备sn")
    private String deviceSn;
    /**
     * 告警类别
     */
    @ApiModelProperty(value = "告警类别")
    private String alarmDetail;
    /**
     * 告警层级
     */
    @ApiModelProperty(value = "告警层级")
    private Integer alarmLevel;
    /**
     * 处理类别 0恢复 1处置
     */
    @ApiModelProperty(value = "处理类别 0恢复 1处置")
    private Integer handleType;
    /**
     * 处置时间
     */
    @ApiModelProperty(value = "处置时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime handleTime;
    /**
     * 处理备注
     */
    @ApiModelProperty(value = "处理备注")
    private String handleNote;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}

